package com.subang.function.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbFamousQuoteNounsMapper;
import com.subang.function.domain.SbFamousQuoteNouns;
import com.subang.function.service.ISbFamousQuoteNounsService;

/**
 * 名言名词Service业务层处理
 * 
 * @author subei
 * @date 2025-04-27
 */
@Service
public class SbFamousQuoteNounsServiceImpl implements ISbFamousQuoteNounsService 
{
    @Autowired
    private SbFamousQuoteNounsMapper sbFamousQuoteNounsMapper;

    /**
     * 查询名言名词
     * 
     * @param id 名言名词主键
     * @return 名言名词
     */
    @Override
    public SbFamousQuoteNouns selectSbFamousQuoteNounsById(Long id)
    {
        return sbFamousQuoteNounsMapper.selectSbFamousQuoteNounsById(id);
    }

    /**
     * 查询名言名词列表
     * 
     * @param sbFamousQuoteNouns 名言名词
     * @return 名言名词
     */
    @Override
    public List<SbFamousQuoteNouns> selectSbFamousQuoteNounsList(SbFamousQuoteNouns sbFamousQuoteNouns)
    {
        return sbFamousQuoteNounsMapper.selectSbFamousQuoteNounsList(sbFamousQuoteNouns);
    }

    /**
     * 新增名言名词
     * 
     * @param sbFamousQuoteNouns 名言名词
     * @return 结果
     */
    @Override
    public int insertSbFamousQuoteNouns(SbFamousQuoteNouns sbFamousQuoteNouns)
    {
        return sbFamousQuoteNounsMapper.insertSbFamousQuoteNouns(sbFamousQuoteNouns);
    }

    /**
     * 修改名言名词
     * 
     * @param sbFamousQuoteNouns 名言名词
     * @return 结果
     */
    @Override
    public int updateSbFamousQuoteNouns(SbFamousQuoteNouns sbFamousQuoteNouns)
    {
        return sbFamousQuoteNounsMapper.updateSbFamousQuoteNouns(sbFamousQuoteNouns);
    }

    /**
     * 批量删除名言名词
     * 
     * @param ids 需要删除的名言名词主键
     * @return 结果
     */
    @Override
    public int deleteSbFamousQuoteNounsByIds(Long[] ids)
    {
        return sbFamousQuoteNounsMapper.deleteSbFamousQuoteNounsByIds(ids);
    }

    /**
     * 删除名言名词信息
     * 
     * @param id 名言名词主键
     * @return 结果
     */
    @Override
    public int deleteSbFamousQuoteNounsById(Long id)
    {
        return sbFamousQuoteNounsMapper.deleteSbFamousQuoteNounsById(id);
    }
}
